import request from '@/utils/aliyunRequest';

const fmtSampleApi = {};

fmtSampleApi.qrCode = (id) => {
	return request({
		url: '/aliyun-api/fmt-sample/qr-code/' + id,
		method: 'get',
    responseType: 'blob',
	})
}
fmtSampleApi.signSample = (number) => {
	return request({
		url: '/aliyun-api/fmt-sample/sign-sample/' + number,
		method: 'put',
	})
}
fmtSampleApi.geneBarCode = (number) => {
	return request({
		url: '/aliyun-api/fmt-sample/gene-barcode/' + number,
		method: 'get',
    responseType: 'blob',
	})
}
fmtSampleApi.page = (params) => {
	return request({
		url: '/aliyun-api/fmt-sample/page',
		method: 'post',
		data: params,
	})
}
fmtSampleApi.add = (params) => {
	return request({
		url: '/aliyun-api/fmt-sample',
		method: 'post',
		data: params,
	})
}
fmtSampleApi.update = (params) => {
	return request({
		url: '/aliyun-api/fmt-sample',
		method: 'put',
		data: params,
	})
}
fmtSampleApi.get = (id) => {
	return request({
		url: '/aliyun-api/fmt-sample/' + id,
		method: 'get',
	})
}
fmtSampleApi.delete = (id) => {
	return request({
		url: '/aliyun-api/fmt-sample/' + id,
		method: 'delete',
	})
}

// 体检信息 列表数据
fmtSampleApi.pageCheckupList = (params) => {
	return request({
		url: '/aliyun-api/fmt-donor-checkup/page',
		method: 'get',
		data: params,
	})
}

// 获取体检项列表
fmtSampleApi.checkupList = (id) => {
	return request({
		url: '/aliyun-api/fmt-donor-checkup/items/' + id,
		method: 'get',
	})
}
export default fmtSampleApi